package cn.tedu.demo;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class DemoLogger {
    public PrintWriter out;

    public void open() throws FileNotFoundException {
        out = new PrintWriter("logger.txt");
        System.out.println("打开文件logger.txt");
    }

    public void close() {
        out.close();
        System.out.println("关闭文件logger.txt");
    }
}
